package com.lihaogn.sell.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @FileName: Admin
 * @Description: 管理员实体类
 *
 * -- 管理员
 * DROP TABLE IF EXISTS `admin`;
 * CREATE TABLE `admin` (
 *   `admin_id` varchar(50) NOT NULL,
 *   `admin_name` varchar(20) NOT NULL,
 *   `admin_password` varchar(20) NOT NULL,
 *   `admin_privilege` tinyint DEFAULT 1, -- 管理员权限：0超级管理员1普通管理员
 *   `admin_status` tinyint DEFAULT 1, -- 管理员状态：0停用1启用
 *   `admin_create_time` datetime NOT NULL DEFAULT now(),
 *   `admin_modified_time` timestamp,
 *   PRIMARY KEY (`admin_id`),
 *   UNIQUE KEY `uk_admin_name` (`admin_name`)
 * ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
 *
 * @Author: lihao
 * @Date: 2019-04-22 16:40
 * @Version: 1.0
 */
@Data
public class Admin {

    @ApiModelProperty(hidden = true)
    private String adminId;
    private String adminName;
    private String adminPassword;
    private Integer adminPrivilege;
    private Integer adminStatus;
    @ApiModelProperty(hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date adminCreateTime;

}
